<?php

namespace app\api\service;

use EasyWeChat\Factory;

class WorkWechatService
{
    public static function getApp()
    {
        $config = [
            'corp_id' => 'ww1ec8d930d061aa48',

            'agent_id' => 1000005, // 如果有 agend_id 则填写
            'secret'   => 'YLnlBYK0ChJ2Bbowup2iqg4JR78DJkE_3OfchcvxoAk',

            // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
            'response_type' => 'array',
            // server config
            'token' => 'dtVRs',
            'aes_key' => '1mNdxhJ5n9Q1kiUwq6Pgo4t5rlFO0Kmdmg1PkKfW3N4',

        ];

        return Factory::work($config);
}
}
